Question:-

Answer Below:-