Pergunta de entrevista da empresa Amazon

How would you design garbage collection in JVM if it was your task? Describe existing GC algorithms.