Dvara Solutions interview question

Some basic program logic's, Strength & weakness