Whirlpool Corporation interview question

Swift fundamental and some coding questions