Renamed to fit algorithm type
Working O(log(n)) solution