Bajaj Finance Interview Question

finding number from string