AutoFi interview question

JS - types, immutability, data structures