Vanguard Interview Question

Write an algorithm and explain its complexity