A firebase cloud function trigger and a google script for the google sheet which syncs the data stored in firebase realtime database and google sheets instantly.
Update the google sheet and the changes will be immediately reflected into the firebase realtime DB or update the database and all the changes would be instantly reflected on the google sheet.