In the ancient land of Valtara, an expedition led by the daring explorer Captain Sylas Darkwood set out to discover the fabled ruins of the Silver Citadel, a once-glorious kingdom believed to have held powerful knowledge and treasures. The journey was perilous, and after many days of navigating through dense forests and treacherous mountains, Captain Darkwood and his team discovered the remains of the Citadel deep within a forgotten valley.
Upon entering the heart of the Citadel, they found a massive stone door inscribed with mysterious symbols. After careful examination, Captain Darkwood realized that these symbols were part of an encrypted message. The message was said to hold the key to unlocking the treasures hidden within the Citadel, but the characters had been reversed in a peculiar way: the letters were scrambled, while the punctuation marks and spaces were left untouched.
With the door refusing to budge and the treasure just out of reach, Captain Darkwood called upon you, the kingdom's greatest cryptographer, to help decipher the message. The fate of the expedition and the future of Valtara rests on your ability to reverse the cryptic message and unlock the secrets of the Silver Citadel before time runs out.
Your mission :
Complete the implementation for reverse the string only for letter & digits characters. Space characters & special characters are always placed in the same position from the given string.
#zohointerview
#zohosoftwaredeveloper
#hpinterview
#hclinterview
#wiproelite
#tcsninja
#tcsnqt
#cognizantgenc
#capgeminiinterview
#infosysinterview
#tcsninja
#capgeminiinterview
#codingchallenges
#javajourneys
#stringsinjava
#stringreversal