As per my knowledge, we can't answer O(1)
@Shaik then what is your view on this https://gateoverflow.in/3654/gate2004-it-13?
my view is the answer provided by rahul sharma 5
64.3k questions
77.9k answers
244k comments
80.0k users