Company: Company - Fidelity Investments, Platform - Hirepro

Difficulty: medium

Problem Statement

A University named "XYZ" sends the question papers for different subjects to different colleges in a zipped file along with a secret key to access them. The Dean appoints squad to different colleges and gives them the following cipher algorithm to be used to find out the password required to open the zip file: Take the question paper's name P and the secret key K (which can be positive or negative). Displace all the lowercase English alphabets present in P by K . All the uppercase alphabets, numbers, spaces, and special characters are retained as it is. If K is positive, displace to the right and if K is negative, displace to the left. The lower limit and upper limit of the character's ASCII value generated after K displacement is 65 and 126 . During the right displacement, if the value exceeds 126 , then start again from 65 . While during left displacement, if the value goes below 65 , then start going back from 126 . The squads perform these steps to find out the password r

More Company - Fidelity Investments, Platform - Hirepro OA questionsInterview experiences