JEE Advanced problem using logarithm