{
  "request": {
    "url": "https://demo.golsh2e.com/eReKruit/api/coding/submit"
  },
  "response": {
    "ok": true,
    "status_code": 200,
    "kind": "coding_submit",
    "data": {
      "status": true,
      "message": "Submission saved and report generated",
      "data": {
        "report": {
          "id": 2,
          "kind": "coding_assessment_report",
          "submissionId": 2,
          "accessKey": "DNPAW2",
          "candidateName": "Garima Singh",
          "questionId": 2,
          "questionTitle": "Armstrong",
          "difficulty": "easy",
          "position": "software developer",
          "problemStatement": "An Armstrong number (also known as a narcissistic number) is a number that is equal to the sum of its own digits raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153. Your task is to write a function that determines whether a given number is an Armstrong number or not.",
          "questionText": "An Armstrong number (also known as a narcissistic number) is a number that is equal to the sum of its own digits raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153. Your task is to write a function that determines whether a given number is an Armstrong number or not.",
          "language": "java",
          "sessionId": "CS-2",
          "durationSeconds": 30,
          "evaluator": "AI Code Evaluator",
          "submittedCode": "public class Armstrong {\n    public static boolean isArmstrong(int num) {\n        System.out.println(\"test\")\n    }\n}",
          "overallScore": 20.0,
          "correctnessScore": 0.0,
          "codeQualityScore": 40.0,
          "verdict": "Fail",
          "summary": "The submitted code does not correctly implement the logic to determine if a number is an Armstrong number. It lacks the necessary computation and returns no meaningful result. Additionally, there is a syntax error in the print statement.",
          "recommendations": "The candidate should focus on completing the implementation of the Armstrong number logic, ensuring that the function calculates the sum of the digits raised to the power of the number of digits. They should also correct syntax errors and ensure proper return types.",
          "dimensionsJson": "[{\"name\":\"Problem Solving\",\"score\":0},{\"name\":\"Algorithm Efficiency\",\"score\":0},{\"name\":\"Code Readability\",\"score\":40},{\"name\":\"Best Practices\",\"score\":20},{\"name\":\"Error Handling\",\"score\":0}]",
          "feedbackJson": "[{\"type\":\"strength\",\"text\":\"The candidate attempted to define a function for the problem.\"},{\"type\":\"strength\",\"text\":\"The structure of the class is correctly defined.\"},{\"type\":\"suggestion\",\"text\":\"The function should implement the logic to calculate the Armstrong condition.\"},{\"type\":\"suggestion\",\"text\":\"Correct the syntax error in the print statement.\"},{\"type\":\"recommendation\",\"text\":\"Consider adding comments to explain the logic behind the implementation.\"}]",
          "codeReviewJson": "[{\"role\":\"evaluator\",\"content\":\"The function isArmstrong is defined but lacks the implementation to check for Armstrong numbers.\",\"timestamp\":\"09:00 am\"},{\"role\":\"evaluator\",\"content\":\"There's a syntax error in the print statement; it should end with a semicolon.\",\"timestamp\":\"09:02 am\"},{\"role\":\"evaluator\",\"content\":\"The logic to calculate the sum of the digits raised to the power of the number of digits is missing.\",\"timestamp\":\"09:03 am\"},{\"role\":\"candidate\",\"content\":\"I intended to implement the logic but ran out of time.\",\"timestamp\":\"09:04 am\"},{\"role\":\"evaluator\",\"content\":\"Make sure to handle edge cases, such as single-digit numbers, in your implementation.\",\"timestamp\":\"09:05 am\"},{\"role\":\"evaluator\",\"content\":\"Consider testing your function with various inputs to ensure correctness.\",\"timestamp\":\"09:06 am\"}]",
          "reportJson": "{\n  \"overall_score\": 20,\n  \"correctness_score\": 0,\n  \"code_quality_score\": 40,\n  \"verdict\": \"Fail\",\n  \"summary\": \"The submitted code does not correctly implement the logic to determine if a number is an Armstrong number. It lacks the necessary computation and returns no meaningful result. Additionally, there is a syntax error in the print statement.\",\n  \"recommendations\": \"The candidate should focus on completing the implementation of the Armstrong number logic, ensuring that the function calculates the sum of the digits raised to the power of the number of digits. They should also correct syntax errors and ensure proper return types.\",\n  \"dimensions\": [\n    {\"name\": \"Problem Solving\", \"score\": 0},\n    {\"name\": \"Algorithm Efficiency\", \"score\": 0},\n    {\"name\": \"Code Readability\", \"score\": 40},\n    {\"name\": \"Best Practices\", \"score\": 20},\n    {\"name\": \"Error Handling\", \"score\": 0}\n  ],\n  \"feedback\": [\n    {\"type\": \"strength\", \"text\": \"The candidate attempted to define a function for the problem.\"},\n    {\"type\": \"strength\", \"text\": \"The structure of the class is correctly defined.\"},\n    {\"type\": \"suggestion\", \"text\": \"The function should implement the logic to calculate the Armstrong condition.\"},\n    {\"type\": \"suggestion\", \"text\": \"Correct the syntax error in the print statement.\"},\n    {\"type\": \"recommendation\", \"text\": \"Consider adding comments to explain the logic behind the implementation.\"}\n  ],\n  \"code_review\": [\n    {\"role\": \"evaluator\", \"content\": \"The function isArmstrong is defined but lacks the implementation to check for Armstrong numbers.\", \"timestamp\": \"09:00 am\"},\n    {\"role\": \"evaluator\", \"content\": \"There's a syntax error in the print statement; it should end with a semicolon.\", \"timestamp\": \"09:02 am\"},\n    {\"role\": \"evaluator\", \"content\": \"The logic to calculate the sum of the digits raised to the power of the number of digits is missing.\", \"timestamp\": \"09:03 am\"},\n    {\"role\": \"candidate\", \"content\": \"I intended to implement the logic but ran out of time.\", \"timestamp\": \"09:04 am\"},\n    {\"role\": \"evaluator\", \"content\": \"Make sure to handle edge cases, such as single-digit numbers, in your implementation.\", \"timestamp\": \"09:05 am\"},\n    {\"role\": \"evaluator\", \"content\": \"Consider testing your function with various inputs to ensure correctness.\", \"timestamp\": \"09:06 am\"}\n  ]\n}",
          "receivedAt": "2026-06-03T13:09:49.863+05:30",
          "generatedAt": "2026-06-03T13:09:58.863+05:30"
        },
        "submission": {
          "id": 2,
          "kind": "coding_submit",
          "accessKey": "DNPAW2",
          "receivedAt": "2026-06-03T13:09:49.863+05:30",
          "candidateId": "219",
          "questionId": 2,
          "questionText": "An Armstrong number (also known as a narcissistic number) is a number that is equal to the sum of its own digits raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153. Your task is to write a function that determines whether a given number is an Armstrong number or not.",
          "language": "java",
          "code": "public class Armstrong {\n    public static boolean isArmstrong(int num) {\n        System.out.println(\"test\")\n    }\n}",
          "submittedAt": "2026-06-03T13:09:49.619+05:30"
        }
      }
    },
    "is_empty": false,
    "candidate": {
      "id": "2",
      "name": "Garima Singh",
      "email": "",
      "phone": "",
      "position_applied": "software developer",
      "skill_set": [],
      "current_stage": null
    },
    "error": null
  }
}