Mr. John Interview Question

Puzzle , Programing Questions , Date structure and Algorithms, MySql