how to get table id sequence postgres

Solutions on MaxInterview for how to get table id sequence postgres by the best coders in the world