Sixgill interview question

Implementation of the function - square