Create a class that dynamically defines getter and setter methods for attributes based on an array of symbols.
HardProblem Statement
Create a class that dynamically defines getter and setter methods for attributes based on an array of symbols.
Sample Input
attrs = [:name, :age] obj = Dynamic.new
Sample Output
Ruby 30
Limits
Time: 2s · Memory: 256 MB