Amazon interview question

2 Complex algorithm to solve under 1 hour