Instant Financial interview question

Regex for input fields validations