Sainsbury’s interview question

Task one with some basic java coding Task two with REST API.