Flipkart | 11th dec 2025 | OA | Word to Number Code | Consecutive Symbol Count
Flipkart · Question · Posted Apr 2026
Question 41: Consecutive Symbol Count Problem Statement: Write a program that processes a given string, inputStr, which contains only the symbols * and %. The program should count the consecutive occurrences of the same symbol and use these counts to form a number. Each sequence of consecutive symbols should be converted to its corresponding count number, and these numbers should be concatenated together to form the final number. Read the input from STDIN (standard input) and Print to STDOUT (standard ...
The full answer & interview discussion are available to premium members.
Log in Create a free account