Bybit interview question

Use of interface in TypeScript