Workday interview question

Technical question includes pythogorous theorem.