Super Smelters interview question

Basis questions