Iron Mountain interview question

Simple hackerrank test