Works for small input. Trying to solve for large input
See if we can work with this commented code