BNY interview question

Very basic questions like String reversal program