Branch history: Fix sample input, finish problem statement, add solution