Bending Spoons Interview Question

Logic quiz and some algorithms