Very large no of corner case


#1

took me 1 hr to find all of them.
-.- take care when your maximum no overflows


#2

It was already mentioned in the problem statement description… i guess u were honest not to peek to the whole description