Greytrix interview question

About Algorithms and Logic Based Programming