DataStax Interview Question

Just coding to fix issue