Hexamatics interview question

Ok intervieew