Lime interview question

Case study with two problems.