Core: Solve simple version of problem