Pergunta de entrevista da empresa Edfora

Q: Question based on form handling in Angular2/Angular1? You have a row with three inputs in it. Say input1, input2 and input3. There is a plus button in the end and upon clicking plus a new save row will be pushed and will appeared next to first row. Conditions: a) If input1 is filled all three must be filled. b) input2 will have number validation on it. c) If all inputs are filled except input1 then discard the values while saving.