Hexagon interview question

aptitude, C programming and Physics