AVAIL FINANCE | Campus Interview Question | On-Campus OA (2025)

Question · Posted Jun 2026

Check if Numbers Are Ascending in a Sentence Problem Statement You are given a string s consisting of words and positive integers separated by single spaces. Return true if all the numbers appearing in the sentence are in strictly increasing order from left to right. Otherwise, return false. Words should be ignored; only compare the numeric tokens. Example Input: s = "1 box has 3 blue 4 red 6 green and 12 yellow marbles" Output: true Explanation: Numbers in the ...

The full answer & interview discussion are available to premium members.

Log in Create a free account