time complexity as 1 since the number of instructions
to be executed will be constant, irrespective of the
data size. Such algorithms are known as Constant
time algorithms.
State the algorithm or concept, trace the logic step by step, and provide syntactically correct code, SQL or output where requested.
Check: Verify the result for the stated input and mention the relevant constraint or complexity.