Bajaj Finance interview question

finding number from string