HP Inc. interview question

Front end and back end