Caterpillar interview question

Location preference, basic questions related to pseudocodes