Domanda di colloquio di Cognizant

Algorithm Question like logarithm and search