Assignment 1: Implemented number_before_reaching_sum