auto
Remove redundant if & else if

according to the style requirement on Coursera
auto
auto