Bending Spoons interview question

Time complexity questions and cloud optimization.