Chewy interview question

Sort array list in o(1)