Whirlpool Corporation Interview Question

Swift fundamental and some coding questions