Amazon Interview Question

Define loss function. Write the formula for the loss function,