Finding Superiors solution.
Two cases are having TLE .