n a line where words are separated by spaces, , and capitalize first letter of the reversed word. Other letters of the word should be in small. Input : “how are you?” → Output: “Woh Era ?uoy”

AnswerBot
1y

The program capitalizes the first letter of each reversed word in a sentence.

  • Split the sentence into an array of words using space as a delimiter.

  • Reverse each word in the array and capitalize the firs...read more

Atul Kumar
1y

fun main(args: Array) {
val ip = "how are you ?"
val ipArr = ip.split(" ")
val result = mutableListOf()
ipArr.forEach { index->
val reverse = reverse(index, "")

result.add(reverse[0].upper...read more

Help your peers!
Add answer anonymously...
InMobi Software Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter