GalaxE.Solutions interview question

mainly on logical and math