Google Interview Question

Design an algorithm to do X, then analyse the complexity.