SoFi interview question

LC easy and medium questions